<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<link rel="stylesheet" href="./css/dong.css">
<script type="text/javascript" src="./js/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="./js/xiugai.js"></script>


<div class="contrainer">
	<div class="wrap">
		<div class="header">
			<p>${buildingName}楼欢迎你</p>
		</div>
		<div class="content">
			<table>
				<c:forEach items="${list}" varStatus="status" step="6">
					<tr>
						<td>
							<div  class="cc2"><a href="showLivedStudentByA.do?name=${list[status.index].name}"><br><br>${list[status.index].name}<br>已住${list[status.index].pup}人<br>剩余${6-list[status.index].pup}床位</a>
							</div>
							</td>
						<td>
							<div class="cc2"><a href="showLivedStudentByA.do?name=${list[status.index+1].name}"><br><br>${list[status.index+1].name}<br>已住${list[status.index+1].pup}人<br>剩余${6-list[status.index+1].pup}床位</a>
							</div>
						</td>
						<td>
							<div class="cc2"><a href="showLivedStudentByA.do?name=${list[status.index+2].name}"><br><br>${list[status.index+2].name}<br>已住${list[status.index+2].pup}人<br>剩余${6-list[status.index+2].pup}床位</a>
							</div>
						</td>
						<td>
							<div class="cc2"><a href="showLivedStudentByA.do?name=${list[status.index+3].name}"><br><br>${list[status.index+3].name}<br>已住${list[status.index+3].pup}人<br>剩余${6-list[status.index+3].pup}床位</a>
							</div>
						</td>
						<td>
							<div class="cc2"><a href="showLivedStudentByA.do?name=${list[status.index+4].name}"><br><br>${list[status.index+4].name}<br>已住${list[status.index+4].pup}人<br>剩余${6-list[status.index+4].pup}床位</a>
							</div>
						</td>
						<td>
							<div class="cc2"><a href="showLivedStudentByA.do?name=${list[status.index+5].name}"><br><br>${list[status.index+5].name}<br>已住${list[status.index+5].pup}人<br>剩余${6-list[status.index+5].pup}床位</a>
							</div>
						</td>
					</tr>
				</c:forEach>
			</table>
		</div>
	</div>
</div>


</body>
</html>